<template>
    <div class="article">
        <!-- 头部 -->
         <van-nav-bar title="文章详情"  left-arrow />
         <!-- 文章题目 -->
         <div class="article-list">
                <div class="article-title">
                    <h3>关键时刻，莫迪受重挫</h3>
                    </div>
                    <!-- 头像 -->
                <div class="article-header">
                    <em><img src="../assets/img/mmgg.jpg" alt=""></em>
                    <div class="article-name"><p>作者</p><span>2021-12-2</span></div>
                </div>
                <!-- 已关注 -->
                <div class="article-gz">
                    <p> +  已关注</p>
                </div>
            </div>
            <!-- 文章 -->
            <div class="article-main">
                <p>在新冠疫情肆虐的印度，总理莫迪面临新的政治麻烦。据英国《卫报》报道，印度总理莫迪在关键的西孟加拉邦选举中遭遇罕见的政治失败。有迹象表明选民对他处理新冠疫情的做法不满。报道称，疫情期间缩短投票时间，并将选举活动转到网上，但由印度人民党控制的选举委员会拒绝了该提议。在首府加尔各答，一些实验室称，检测结果显示新冠阳性比例高达50%。莫迪未能夺取孟加拉，原因跟他处理疫情不力有关。当天，专栏作家斯瓦迪查图尔维第在新德里电视台网站撰文评论:“印人党并非一股不可阻挡的力量。。”</p>
            </div>
            <!-- pinglun -->
            <div class="article-pl">
                <div class="pl-img">
                    <em><img src="../assets/img/keli.jpg" alt=""></em>
                    <div class="pl-name">
                        <p>小张</p>
                        <p>不错</p>
                        <span>2021-05-12</span>
                    </div>
                    <!-- huifu -->
                    <div class="pl-hf">
                        <span>3 回复</span>
                    </div>
                    <!-- dianzan -->
                    <div class="pl-dz">
                    <van-icon name="good-job" color="red" size="4vw"/>
                    <span>21</span>
                    </div>
                </div>
            </div>
            <div class="article-fl">
                <input type="text" placeholder="写评论">
                <van-icon class="comment-o" name="comment-o" size="5vw" />
                <van-icon class="star" name="star"  size="5vw"/>
                <van-icon class="good-job" name="good-job" color="red" size="5vw"/>
                <van-icon class="share" name="share"  color="#ccc" size="5vw"/>
            </div>

    </div>
</template>
<style lang="less">
body{
    background: #f7f8fa;
    height: 100vh;
    
}
.article .article-title{
    margin-left: 20px;
}
.article .article-title h3{
    font-size: 17px;
}
.article .article-header{
    margin-left: 20px;
    margin-top: 40px;
    width: 180px;

    // justify-content: center;
}
.article .article-header img{
    height: 40px;
    width: 40px;
    border-radius: 50px;
}
.article .article-header .article-name{
    position: absolute;
    right: 245px;
    top: 113px;
}
.article .article-header .article-name p{
  font-size: 13px;
}
.article .article-header .article-name span{
    color: #ccc;
    font-size: 13px;
}
.article .article-gz{
    height: 22px;
    width: 65px;
    border: 1px solid #ccc;
    border-radius: 50px;
    position:absolute;
    right: 30px;
    top:130px;
}
.article .article-gz p{
    text-align: center;
    line-height: 25px;
    font-size: 12px;
    margin: 0;
}
.article .article-list{
    border-bottom: 1px #f7f8fa solid;
    padding-bottom: 15px;
    background: #fff;
}
.article .article-main{
    background: #fff;
    padding-bottom: 10px;
}
.article .article-main p{
    font-size: 14px;
    margin: 0;
    
    padding: 0 20px;
}
.article .article-pl{
    padding: 0 20px;
    background: #fff;
}
.article .article-pl .pl-img img{
    width: 40px;
    height: 40px;
    border-radius: 50px;
}
.article .article-pl .pl-img{
    display: flex;
    position: relative;
    height: 62px;
    padding-bottom: 15px;
}
.article .article-pl .pl-img .pl-name{
    margin: 0 10px;
}
.article .article-pl .pl-img .pl-name p{
    margin: 0;
    font-size: 14px;
    margin-bottom: 5px;
}
.article .article-pl .pl-img .pl-name p:first-child{
    color: blue;
    font-size: 12px;
}.article .article-pl .pl-img .pl-name span{
    font-size: 11px;
}
.article .article-pl .pl-img .pl-hf{
    width: 45px;
    height: 13px;
    border-radius: 50px;
    border: 1px solid #ccc;
    position: absolute;
    bottom: 10px;
    left: 120px;
    padding-bottom: 5px;
}
.article .article-pl .pl-img .pl-hf span{
    font-size: 9px;
    text-align: center;
    line-height: 18px;
    display: block;
}
.article .article-pl .pl-img .pl-dz{
    position: absolute;
    right: 30px;
}
.article .article-pl .pl-img .pl-dz span{
    font-size: 12px;
}
.article .article-fl{
    position: fixed;
    bottom: 0;
    height: 30px;
    width: 100%;
    border-top: 1px #ccc solid;
    padding-top: 5px;
    background: #fff;
}
.article .article-fl input{
    height: 20px;
    outline: none;
    text-align: center;
    border-radius: 50px;
    border: 1px #ccc solid;
    width: 180px;
    margin-left: 10px;  
}
.article .article-fl .comment-o{
    margin-left: 24px;
}
.article .article-fl .star{
    margin-left: 24px;
}
.article .article-fl .good-job{
    margin-left: 24px;
}
.article .article-fl .share{
    margin-left: 24px;
}
</style>
<script>
import { NavBar,Icon } from 'vant';
export default {
components:{
    [NavBar.name]:NavBar,
    [Icon.name]:Icon,
}
}
</script>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          